import DeviceAPI from "@/api/device";

const deviceFormOption: object = {
  size: "large",
  labelWidth: 100,
  submitBtn: true,
  emptyBtn: true,
  column: [
    {
      label: "设备名称",
      prop: "name",
      rules: [{ required: true, message: "请输入户型名称", trigger: "blur" }],
    },

    {
      label: "设备类型",
      prop: "category_id",
      rules: [{ required: true, message: "请选择类型", trigger: "blur" }],
      type: "select",
      dicData: DeviceAPI.getTypeOptions,
    },

    {
      label: "设备型号",
      prop: "type",
      rules: [{ required: true, message: "请输入设备型号", trigger: "blur" }],
    },

    {
      label: "设备图",
      prop: "image",
    },
  ],
};

export default deviceFormOption;
